<?php

namespace common\models\forms;
use Yii;
use yii\base\Model;

class Website extends Model
{
    /**
     * @var string application name
     */
    public $status;
    public $reason;
    public $icp;
    public $code;
    public $location;
    public $develop_status;
    public $flogo;
    public $blogo;
    public $slides;
    public $notice;
    public $statcode;
    public $footerright;
    public $footerleft;
    public $name;
    public $intro;
    public $description;
    public $keywords;
    public $themcolor;

    /**
     * @inheritdoc
     */
    public function rules(): array
    {
        return [
            [['status','name', 'reason','icp','code','location','develop_status','flogo','blogo',
            'slides','notice','statcode','footerright','footerleft',
            'intro',    
            'description',    
            'keywords',   
            'themcolor', 
            ], 'required'],
            // [['status'],'in',['1'=>'关闭','0'=>'开启']]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels(): array
    {
        return [
            'name' =>'站点名称',
            'intro' =>'站点一句话说明',
            'description' =>'站点简介',
            'keywords' =>'站点关键字',
            'status' =>'是否关闭站点',
            'reason' =>'关闭站点的原因',
            'icp' =>'ICP备案',
            'code' =>'备案号',
            'location' =>'备案地址',
            'develop_status' =>'是否开启调试',
            'flogo' =>'前台logo',
            'blogo' =>'后台logo',
            'slides' =>'幻灯片',
            'notice' =>'幻灯片中的文字',
            'statcode' =>'第三方统计代码',
            'footerright' =>'底部右侧',
            'footerleft' =>'底部左侧',
            'themcolor'=>'后台主题'
        ];
    }
}
